import request from '@/utils/request'

// 查询监测管理列表
export function listMonitors(query) {
  return request({
    url: '/monitors/monitors/list',
    method: 'get',
    params: query
  })
}

// 查询监测管理详细
export function getMonitors(monitorsId) {
  return request({
    url: '/monitors/monitors/' + monitorsId,
    method: 'get'
  })
}

// 新增监测管理
export function addMonitors(data) {
  return request({
    url: '/monitors/monitors',
    method: 'post',
    data: data
  })
}

// 修改监测管理
export function updateMonitors(data) {
  return request({
    url: '/monitors/monitors',
    method: 'put',
    data: data
  })
}

// 删除监测管理
export function delMonitors(monitorsId) {
  return request({
    url: '/monitors/monitors/' + monitorsId,
    method: 'delete'
  })
}
